DISCUSSION
The
ATSUCreateStyle function creates an "empty" style object that contains default style run attribute, font feature, and font variation values. The default font feature and variation values are defined by the font; default style attribute values are described in
Table C-1. You can set the style run attribute values in a style object by calling the function
ATSUSetAttributes. To set font features and font variations in a style object, call the functions
ATSUSetFontFeatures and
ATSUSetVariations, respectively.
To create a copy of an existing style object, call the function
ATSUCreateAndCopyStyle. You can copy a portion of a style object into an existing style object by calling the functions
ATSUCopyAttributes,
ATSUOverwriteAttributes, and
ATSUUnderwriteAttributes.